#
# Be sure to run `pod lib lint BPUIKit.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'BPUIKit'
  s.version          = '0.0.5'
  s.summary          = 'A short description of BPUIKit.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = 'a simple UIKit'

  s.homepage         = 'https://github.com/404/BPUIKit'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { '404' => '769697184@qq.com' }
  s.source           = { :git => 'https://gitee.com/xuhongji/BPUIKit.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '10.0'
  s.source_files = 'BPUIKit/BPUIKit.h'
    
  #  s.resource_bundles = {
  #    'BPStoreKit' => ['BPStoreKit/Resource/BPStoreKit.bundle']
  #  }
  # s.resource = ['BPStoreKit/Resource/BPStoreKit.bundle']
    
  s.subspec 'BPUICore' do |core|
      core.source_files = 'BPUIKit/BPUICore/**/*'
      core.dependency 'AFNetworking', '~> 4.0.1'
      core.dependency 'CocoaLumberjack', '~> 3.6.1'
      core.dependency 'FMDB', '~> 2.3'
      core.dependency 'JLRoutes', '~> 2.1.0'
      core.dependency 'MJExtension', '~> 3.2.1'
  end
    
  s.subspec 'BPUIComponents' do |components|
      components.source_files = 'BPUIKit/BPUIComponents/**/*'
      components.dependency 'BPUIKit/BPUICore'
  end

  s.subspec 'BPUIMainFrame' do |mainFrame|
      mainFrame.source_files = 'BPUIKit/BPUIMainFrame/**/**/*'
      mainFrame.dependency 'BPUIKit/BPUICore'
      mainFrame.dependency 'BPUIKit/BPUIComponents'
  end
    
    # s.public_header_files = 'Pod/Classes/**/*.h'
  s.frameworks = 'UIKit', 'WebKit', 'Security', 'CoreGraphics', 'Foundation'
  s.libraries = 'z', 'sqlite3', 'iconv' # 如:使用系统的libz.tbd，libsqlite3.tbd
    

end
